#define _CRT_SECURE_NO_WARNINGS 1
#pragma once

#include"Heap.h"

int main()
{
	Heap hp;
	int b[4] = { 3, 2, 1 ,4 };
	int n = sizeof(b) / sizeof(int);
	HeapCreat(&hp, b, n);
	HeapPrint(&hp);

	for (int i = 0; i < 5; i++)
	{
		int x;
		scanf("%d", &x);
		HeapPush(&hp, x);
	}
	HeapPrint(&hp);

	HeapPop(&hp);
	HeapPrint(&hp);

	printf("%d\n", HeapTop(&hp));
	printf("%d\n", HeapSize(&hp));
	if (HeapEmpty(&hp))
		printf("YES\n");
	else
		printf("NO\n");

	HeapDestory(&hp);
	return 0;
}